package com.taojiazheng.mapper;

import com.taojiazheng.entity.Userinfo;
import org.springframework.stereotype.Repository;

@Repository
public interface UserinfoMapper {
    int deleteByPrimaryKey(Integer id);

    /**
     * 完善用户信息
     * @param record
     * @return
     */

    int insert(Userinfo record);

    int insertSelective(Userinfo record);

    Userinfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Userinfo record);

    int updateByPrimaryKey(Userinfo record);
    Userinfo getUserByUserId(Integer userId);

    int deleteUserInfo(Integer userId);
}